<template>
  <div id="app">
    <!-- <img alt="Vue logo" src="./assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/> -->
    <!-- <login></login> -->
    <router-view/>
  </div>
</template>

<script>
// import login from './user/login.vue'
// import HelloWorld from './components/HelloWorld.vue'
export default {
  // components: { login },
  name: 'App',
  // components: {
  //   HelloWorld
  // }
  methods:{
    async isLogin(){
      var user =await this.ajax.getSubmit("/project/user/getUser");
      return user;
    }
  },
  async mounted(){
    var user = await this.isLogin();
    if(user.length == 0){
      this.$router.push("/check");
    }else{
      this.$router.push("/index/show");
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 00px;
}
</style>
